﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace WCFGPSTrackingApp
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWCFServiceApp" in both code and config file together.
    [ServiceContract]
    public interface IWCFServiceApp
    {
        [OperationContract]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json, Method = "GET", UriTemplate = "/IdentifiedUser?companyID={companyID}&username={username}&password={password}")]
        Entities.Users IdentifiedUser(int companyID, string username, string password);

        [OperationContract]
        [WebInvoke(BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json, Method = "GET", UriTemplate = "/GetGPSImeiInfo?username={username}&isUser={isUser}&isAdmin={isAdmin}&isMaster={isMaster}")]
        List<Entities.GPSImeiInfo> GetGPSImeiInfo(int companyID, string username, bool isUser, bool isAdmin, bool isMaster);        
    }
}
